﻿<%@ Page Title="materialinfo" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="dzs.Web.materialinfo.List" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" src="/js/CheckBox.js" type="text/javascript"></script>
    <style type="text/css">
        .auto-style1 {
            width: 329px;
        }
        .auto-style2 {
            width: 169px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<!--Title -->

            <!--Title end -->

            <!--Add  -->

            <!--Add end -->

            <!--Search -->
            <table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
                <tr>
                    <td align="right" class="auto-style2">
                         <b>物料类型：</b><asp:DropDownList ID="ddltype" runat="server">
                             <asp:ListItem Value="-1">全部</asp:ListItem>
                             <asp:ListItem Selected="True" Value="0">正常</asp:ListItem>
                             <asp:ListItem Value="1">节余</asp:ListItem>
                             <asp:ListItem Value="2">废旧</asp:ListItem>
                         </asp:DropDownList>
                    </td>
                    <td class="auto-style1">                       
                         <b>项目名称：</b><asp:TextBox ID="txtKeyword" runat="server"></asp:TextBox>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnSearch" runat="server" Text="查询"  OnClick="btnSearch_Click" >
                    </asp:Button>                    
                        
                    </td>
                    <td class="tdbg">
                    </td>
                </tr>
            </table>
            <!--Search end-->
            <br />
            <asp:GridView ID="gridView" runat="server" AllowPaging="True" Width="100%" OnPageIndexChanging ="gridView_PageIndexChanging"
                    BorderWidth="0px" CellPadding="0" CellSpacing="1" CssClass="gv" GridLines="None" DataKeyNames="mid" OnRowDataBound="gridView_RowDataBound"
                    AutoGenerateColumns="false" PageSize="20"  RowStyle-HorizontalAlign="Center" >
                    <Columns>
                    <asp:TemplateField ControlStyle-Width="30" HeaderText="选择"    >
                        <HeaderTemplate>
                                    <input id="Checkbox1" type="checkbox" onclick="javascript: chall(this)" />                                    
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="DeleteThis" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField> 
                            
		<asp:BoundField DataField="proid" HeaderText="项目编号" SortExpression="proid" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="usework" HeaderText="需用单位" SortExpression="usework" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="projectname" HeaderText="项目名称" SortExpression="projectname" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="projecttype" HeaderText="项目类型" SortExpression="projecttype" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="supplier" HeaderText="供应商名称" SortExpression="supplier" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="material" HeaderText="物料描述" SortExpression="material" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="nums" HeaderText="数量" SortExpression="nums" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="unit" HeaderText="单位" SortExpression="unit" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="suppliername" HeaderText="供应商联系人" SortExpression="suppliername" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="supplierphone" HeaderText="联系电话" SortExpression="supplierphone" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="mstatus" HeaderText="状态" SortExpression="mstatus" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="uid" HeaderText="物料员" SortExpression="uid" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="mtypecn" HeaderText="物料类型" ItemStyle-HorizontalAlign="Center"  /> 
                            
                            <asp:HyperLinkField HeaderText="详细" ControlStyle-Width="50" DataNavigateUrlFields="mid" DataNavigateUrlFormatString="Show.aspx?id={0}"
                                Text="详细"  />
                            <asp:HyperLinkField HeaderText="编辑" ControlStyle-Width="50" DataNavigateUrlFields="mid" DataNavigateUrlFormatString="Modify.aspx?id={0}"
                                Text="编辑"  />
                            <asp:TemplateField ControlStyle-Width="50" HeaderText="删除"   Visible="false"  >
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                         Text="删除"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                 <PagerStyle CssClass="mypager" />
                </asp:GridView>
               <table border="0" cellpadding="0" cellspacing="1" style="width: 100%;">
                <tr>
                    <td style="width: 1px;">                        
                    </td>
                    <td align="left">
                        <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click"/>                       
                    </td>
                </tr>
            </table>
</asp:Content>
<%--<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceCheckright" runat="server">
</asp:Content>--%>
